package cn.edu.neusoft.yuejian4.yuejian_4.model;


import cn.edu.neusoft.yuejian4.yuejian_4.javaBean.Success;
import cn.edu.neusoft.yuejian4.yuejian_4.javaBean.User;
import cn.edu.neusoft.yuejian4.yuejian_4.listener.TListener;
import retrofit2.Call;

public class LoginModel extends RetrofitBaseModel {

    public void login(String name,String password, TListener<Success> listener) {
        Call<Success> call = service.login(name,password);
        callenqueue(call, listener);
    }

    public void register(String name, String password,TListener<Success> listener){
        Call<Success> call = service.register(name,password);
        callenqueue(call,listener);
    }


}
